package ysq.xyg.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 消费记录
 * */
@Table(name = "ddc_record")
public class Record implements Serializable {

    @Id
    private String id;

    /**
     * 用户id
     */
    @Column(name = "member_id")
    private String memberId;

    /**
     * 账号金额（单位为1)
     */
    private Double money;

    /**
     * 1.消费
     */
    private String type;

    /**
     * 收货人->充值
     * 收货人id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 描述
     */
    private String descripts;

    /**
     * 消费外键
     */
    @Column(name = "extra_id")
    private String extraId;
    /**
     * 有效状态（用于当前钱是否已经打到账号，1、未打到账号，2、已打到账号，3、已经失效）
     */
    @Column(name = "valid_status")
    private String validStatus;

    /**
     * 失效原因（用于validStatus为3、已经失效）
     */
    @Column(name = "valid_msg")
    private String validMsg;
    /**
     * 操作时间
     */
    @Column(name = "valid_time")
    private Date validTime;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    @Transient
    private String startDate;

    @Transient
    private String endDate;

    /**
     * 姓名
     */
    @Transient
    private String name;

    /**
     * 头像
     */
    @Transient
    private String headImage;

    /**
     * 微信昵称
     */
    @Transient
    private String nickName;
    //介绍人id
    @Transient
    private String introductUserId;
    //卡号
    @Transient
    private String cardNo;
    /**
     * 手机号
     */
    @Transient
    private String phone;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDescripts() {
        return descripts;
    }

    public void setDescripts(String descripts) {
        this.descripts = descripts;
    }

    public String getExtraId() {
        return extraId;
    }

    public void setExtraId(String extraId) {
        this.extraId = extraId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIntroductUserId() {
        return introductUserId;
    }

    public void setIntroductUserId(String introductUserId) {
        this.introductUserId = introductUserId;
    }


    public Record(String memberId) {
        this.memberId = memberId;
    }

    public Record() {
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getValidStatus() {
        return validStatus;
    }

    public void setValidStatus(String validStatus) {
        this.validStatus = validStatus;
    }

    public String getValidMsg() {
        return validMsg;
    }

    public void setValidMsg(String validMsg) {
        this.validMsg = validMsg;
    }

    public Date getValidTime() {
        return validTime;
    }

    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }
}